
import React from 'react';
import Icon from '@ant-design/icons';
import { Space } from 'antd';
import type { GetProps } from 'antd';

type CustomIconComponentProps = GetProps<typeof Icon>;

const ToolSvg = () => (
    <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg">
        <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
            <g transform="translate(-470, -353)">
                <g transform="translate(452, 196)">
                    <g transform="translate(0, 144)">
                        <g transform="translate(17, 10)">
                            <g  transform="translate(0, 2)">
                                <rect  x="0" y="0" width="16" height="16"></rect>
                                <g transform="translate(1, 1)" fill="currentColor" fillRule="nonzero">
                                    <path d="M9.70232441,14 L1.33488154,14 C0.586047943,14 0,13.3926969 0,12.6895009 L0,10.6757921 C0,10.5159799 0.0651226558,10.3881273 0.195353978,10.2922344 C0.325585299,10.1963416 0.488370954,10.1643819 0.618602276,10.1963416 C0.781401921,10.228315 0.944187576,10.2602747 1.0744189,10.2602747 C2.01860647,10.2602747 2.80000839,9.49314561 2.80000839,8.56620421 C2.80000839,7.63926282 2.01860647,6.87214744 1.0744189,6.87214744 C0.944187576,6.87214744 0.781401921,6.90410714 0.618602276,6.93606685 C0.455816621,6.96804029 0.325585299,6.93606685 0.195353978,6.84018773 C0.0651226558,6.74430861 0,6.61644231 0,6.4566163 L0,4.44292125 C0,3.70776557 0.618602276,3.13242216 1.33488154,3.13242216 L2.83256273,3.13242216 C2.80000839,2.97260989 2.80000839,2.81278388 2.80000839,2.65295788 C2.80000839,1.18264652 4.00465861,0 5.50232581,0 C7,0 8.20465721,1.18266025 8.20465721,2.65297161 C8.20465721,2.81278388 8.20465721,2.97260989 8.17210288,3.13242216 L9.66977008,3.13242216 C10.4186037,3.13242216 11.0046516,3.73972527 11.0046516,4.44292125 L11.0046516,5.91324634 L11.2976826,5.91324634 C12.7953498,5.91324634 14,7.09589286 14,8.56620421 C14,10.0365156 12.7953498,11.2191758 11.2976826,11.2191758 L11.0046516,11.2191758 L11.0046516,12.6895009 C11.0697743,13.3926969 10.451172,14 9.7023384,14 L9.70232441,14 Z M0.976741909,11.2191758 L0.976741909,12.6575275 C0.976741909,12.8493132 1.13954155,13.0091255 1.33488154,13.0091255 L9.7023384,13.0091255 C9.89767839,13.0091255 10.060478,12.8493132 10.060478,12.6575275 L10.060478,10.579913 C10.060478,10.420087 10.1255867,10.2602747 10.255818,10.1963416 C10.3860633,10.1004487 10.548835,10.1004487 10.7116346,10.1324222 C10.9069746,10.1963416 11.1023286,10.2602747 11.2976686,10.2602747 C12.2418702,10.2602747 13.0232581,9.49314561 13.0232581,8.56620421 C13.0232581,7.63926282 12.2418702,6.87214744 11.2976826,6.87214744 C11.1023286,6.87214744 10.9069746,6.90410714 10.7116346,7 C10.548835,7.06393315 10.3860493,7.03195971 10.255818,6.93606685 C10.1255727,6.84018773 10.060464,6.71233516 10.060464,6.55250916 L10.060464,4.44292125 C10.060464,4.25114927 9.89767839,4.09132326 9.70232441,4.09132326 L7.52094627,4.09132326 C7.35816062,4.09132326 7.19536097,3.9954304 7.09769797,3.86759157 C7.00002098,3.73972527 7.00002098,3.5479533 7.06512965,3.420087 C7.19537496,3.16438187 7.2279293,2.94063645 7.2279293,2.68493132 C7.2279293,1.75800366 6.44652737,0.990874541 5.5023398,0.990874541 C4.55815222,0.990874541 3.77676429,1.75798993 3.77676429,2.68493132 C3.77676429,2.94063645 3.84187296,3.19635531 3.93954995,3.420087 C4.0046726,3.579913 4.0046726,3.73972527 3.90699561,3.86757784 C3.80931863,3.99544414 3.64653297,4.09132326 3.48373333,4.09132326 L1.33489553,4.09132326 C1.13955554,4.09132326 0.976741909,4.25114927 0.976741909,4.44292125 L0.976741909,5.88127289 C2.50699142,5.81735348 3.77676429,7.03195971 3.77676429,8.53424451 C3.77676429,10.0045696 2.57210008,11.1872161 1.07443289,11.1872161 C1.04187855,11.2191758 1.00932422,11.2191758 0.976741909,11.2191758 L0.976741909,11.2191758 Z" id="形状"></path>
                                </g>
                            </g>
                        </g>
                    </g>
                </g>
            </g>
        </g>
    </svg>
);

const ToolIcon = (props: Partial<CustomIconComponentProps>) => (
    <Icon component={ToolSvg} {...props} />
);

const CustomToolIcon: React.FC = () => (
    <Space>
        <ToolIcon />
    </Space>
);

export default CustomToolIcon;



